<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
    <h2></h2>
    <script>
        fetch("http://localhost:9000/consumer/consum")
            .then(resp=>resp.json())
            .then(data=>document.querySelector("h2").innerText=JSON.stringify(data))
    </script>
</body>
</html>